package com.sample.Intent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class IntentActivity extends Activity implements OnClickListener{
	Intent intent;
	Button button1; 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        button1=(Button)findViewById(R.id.button1);
        button1.setOnClickListener(this);
       
    }

	public void onClick(View v) {
		intent= new Intent(this, OtherActivity.class);
		this.startActivity(intent);
		
	}
}